package com.colin.app.activity.other.accessibility;

import android.view.View;

import com.colin.app.R;
import com.colin.app.activity.other.OtherContract;
import com.colin.app.activity.other.OtherPresenterImpl;
import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;

public class AccessibilityActivity extends AppActivity implements OtherContract.OtherView {
    private OtherContract.OtherPresenter mOtherPresenter = null;

    @Override
    protected void onDestroy() {
        if (null != mOtherPresenter) {
            mOtherPresenter.destroy();
            mOtherPresenter = null;
        }
        super.onDestroy();
    }

    @Override
    public void initPresenter() {
        DemoBean demoBean = getIntent().getExtras().getParcelable("clazz");
        mOtherPresenter = new OtherPresenterImpl(this, this, demoBean);
    }


    @Override
    public int initViewLayoutID() {
        return R.layout.activity_accessibility;
    }

    @Override
    public void initView() {
    }

    @Override
    public void initData() {
        mOtherPresenter.setData();
    }

    public void actionAccessibility(View view) {
        mOtherPresenter.actionAccessibility();
    }

    public void accessibilityInstall(View view) {
        mOtherPresenter.accessibilityInstall();
    }

    public void accessibilityUninstall(View view) {
        mOtherPresenter.accessibilityUnInstall();
    }

    public void accessibilityKill(View view) {
        mOtherPresenter.accessibilityKillApp();
    }
}
